<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta content="ko" http-equiv="Content-Language" />
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<title>KAIST-CANSS Personal Information</title>
	<link href="design/mainframe.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
	.style1 {
		text-align: center;
		color: #FFFFFF;
		border-style: solid;
		border-width: 1px;
		padding: 1px 4px;
		background-color: #248CFC;
	}
	.style2 {
		border-style: solid;
		border-width: 1px;
	}
	img.button {
		cursor:pointer;
	}
	index
	{
		cursor:default;
	}
	input
	{
		border: #1EB1f9 2px dotted;
	}
	</style>
	<script type="text/javascript" src="lib/httpobject.js"></script>
	</head>
	<body >
	
	<% canss.webservice.service.PortalIntraWebServiceControl control=null; %>
	<%
		control = (control==null)?new canss.webservice.service.PortalIntraWebServiceControlBean():control;
		
		canss.webservice.model.PersonDesc persondesc = null;
		canss.webservice.service.PortalIntraWebService_Wrapper_Person_Imsi person_imsi = null;
		if(request.getParameter("_pid")!=null && request.getParameter("_pid").length()>0)
		{
			canss.webservice.model.PersonDesc[] persondesclist = control.getPersonDescByPID(request.getParameter("_pid"));
			if(persondesclist!=null && persondesclist.length>0)
				persondesc = persondesclist[0];
			
			canss.webservice.service.PortalIntraWebService_Wrapper_Person_Imsi[] person_imsilist = control.getPerson_ImsiByPID(request.getParameter("_pid"));
			if(person_imsilist!=null && person_imsilist.length>0)
				person_imsi = person_imsilist[0];
		}
		if(persondesc==null)
		{
			persondesc = new canss.webservice.model.PersonDesc(request.getParameter("_pid"));
		}
		if(person_imsi==null)
		{
			response.getWriter().write("error:");
			return;
		}
	%>	
		<input type="button" value="돌아가기" onclick="opener.location.href='<%=response.encodeRedirectURL(request.getParameter("_rurl")) %>';window.close();" />
		<h3 class="style1" style="width: 710px">사용자 정보 페이지입니다.</h3>
		<div class="style2" style="width: 718px; height: 725px">
			<div id="div_basicform">
				<ol>
					<li>Role<ol>
						<li>
						<input disabled='disabled' readonly id="_typecp" name="_persontype" type="radio" />Content Provider: Syndication System에 Content의 공급을 목적으로 합니다.</li>
						<li>
						<input disabled='disabled' readonly checked="checked" id="_typethirdparty" name="_persontype" type="radio" />Party user: Syndication System에 등록된 Content들을 이용할 수 있는 Key를 신청할 수 있습니다. 또한 이 Key를 이용하여 Content를 공급할 수 있는 기능을 제공받습니다.</li>
					</ol>
					</li>
					<li>사용자 ID<ol>
						<li>ID: <input readonly id="txt_id" style="width: 148px" type="text" value="<%=persondesc.getTBLPID_PID() %>" /> (숫자/영문) </li>
					</ol>
					</li>
				</ol>
			</div>
			<hr />
			<!-- basicform2 -->
			<div id="div_basicform2">
				<ol>
					<li>
						필수적으로 입력받는 정보입니다. 
						<ol>
							<li>이름: <input readonly id="txt_name" type="text" value="<%=person_imsi.getCanssperson_Name() %>" /> (한글/영문)</li>
							<li>
								전화번호:
								<input readonly id="txt_phone" name="txt_phone" style="width: 150px" type="text" value="<%=person_imsi.getCanssperson_Phone() %>" />
							</li>
							<li>
								이메일: <input readonly name="txt_email" id="txt_email" style="width: 247px" type="text" value="<%=person_imsi.getCanssperson_Email() %>" />
							</li>
						</ol>
					</li>
				</ol>
			</div>
			<div id="div_exform" ><!-- this is for 3rd party -->
				<!-- exform_biztype -->
				<div id="div_exform_biztype" >
					<ol>
						<li>
							사업자 형태입니다
							<ol>
								<li><input disabled='disabled' readonly <%=persondesc.getPUB_BUZTYPE()==canss.supports.basic.DEFAULT_BUZTYPE_THIRDPARTY_PERSONAL ? "checked='checked'" : "" %> name="_buztype" type="radio" id="_typepersonal" />개인 사업자</li>
								<li><input disabled='disabled' readonly <%=persondesc.getPUB_BUZTYPE()==canss.supports.basic.DEFAULT_BUZTYPE_THIRDPARTY_PUBLIC ? "checked='checked'" : "" %> name="_buztype" type="radio" id="_typepublic" />법인 사업자</li>
							</ol>
						</li>
					</ol>
				</div>
				<!-- exform_buz_public -->
				<div id="div_exform_buz_public" >
					<ol>
						<li>
							모든 항목을 입력하셔야 등록이 가능합니다.
							<ol>
								<li>법인명&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_name" style="width: 133px" type="text" value="<%=persondesc.getPUB_NAME() %>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
								사업자등록번호&nbsp;
								<input readonly id="txt_pub_regnum" style="width: 220px" type="text" value="<%=persondesc.getPUB_REGNUM() %>" /></li>
								<li>업종&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_category" style="width: 132px" type="text" value="<%=persondesc.getPUB_CATEGORY() %>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
								종업원 수&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_people" style="width: 67px" type="text" value="<%=persondesc.getPUB_PEOPLE() %>" />(명)</li>
								<li>자본금&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_money" style="width: 132px" type="text" value="<%=persondesc.getPUB_MONEY() %>" />(천만원)&nbsp;&nbsp;&nbsp;&nbsp; 
								설립년도&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_year" style="width: 67pxpx" type="text" value="<%=persondesc.getPUB_YEAR() %>" /></li>
								<li>대표자 성명
								<input readonly id="txt_pub_ceo" style="width: 130px" type="text" value="<%=persondesc.getPUB_CEO() %>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
								대표전화번호&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_ceo_phone" style="width: 220px" type="text" value="<%=persondesc.getPUB_CEOPHONE() %>" /></li>
								<li>회사 주소&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input readonly id="txt_pub_addr" style="width: 504px" type="text" value="<%=persondesc.getPUB_ADDR() %>" /></li>
							</ol>
						</li>
					</ol>
				</div>
			</div>
		</div>
		<input type="button" value="돌아가기" onclick="opener.location.href='<%=response.encodeRedirectURL(request.getParameter("_rurl")) %>';window.close();" />
	</body>
</html>
